package com.ymsoft.myerp.service;

import com.ymsoft.myerp.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ymsoft
 * @since 2020-04-12
 */
public interface IUserService extends IService<User> {

    /**
     * 通过请求获取token，然后获取用户信息
     *
     * @param request
     * @return
     */
    User getUserByToken(HttpServletRequest request, String... token);

    String getUsernameByRequest(HttpServletRequest request);
}
